# Python 2.6.4
# Project Euler, Problem 121
# Copyright 2010 Talha Zaman

from mine import fac
def wins(b, t, m, w):
    if t==m: return w*(b>m/2)
    return wins(b+1, t+1, m, w) + wins(b, t+1, m, w*(t+1))

print fac(16)/wins(0, 0, 15, 1)
